package com.vpx.server.framework.exception;
/**
 * @author xx
 * @title: vpx
 * @module 
 * @description: 
 * @date 
 */
public class BizException extends RuntimeException {
    private String code;

    public BizException() {
        super();
    }

    /**
     * 构建一个<code>BizError.java</code>
     * msg为自定义信息
     * 此方法适用于 直接抛出自己定义的信息
     *
     * @param msg
     */
    public BizException(String msg) {
        super(msg);
    }

    public BizException(String code, String message) {
        super(message);
        this.code = code;
    }

    public BizException(String message, Throwable cause) {
        super(message, cause);
    }

    public BizException(Throwable cause) {
        super(cause);
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
